﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using Financeiro.Model;

namespace Financeiro
{
    public partial class Log : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            DataTable logs = LogModel.buscarLog();

            grdLog.DataSource = logs;
            grdLog.DataBind();
        }

    
        protected void grdLog_RowDataBound(object sender, GridViewRowEventArgs e)
        {
            if (e.Row.Cells[2].Text == "0")
            {
                e.Row.Cells[2].Text = "Baixo";
            }
            else if (e.Row.Cells[2].Text == "1")
            {
                e.Row.Cells[2].Text = "Médio";
            }
            else if (e.Row.Cells[2].Text == "2")
            {
                e.Row.Cells[2].Text = "Alta";
            }
        }
    }
}